import { createSSRApp } from "vue";
import App from "./App.vue";
import { createPinia } from "pinia";
import { createUnistorage } from "pinia-plugin-unistorage";



export function createApp() {
  const app = createSSRApp(App);

const pinia = createPinia();
  // 注入 pinia 持久化插件
  pinia.use(createUnistorage())
  app.use(pinia);

  return {
    app,
  };
}
